/**
 * When one room is choosed, list of available beds is displayed.
 */
function getAvailableBeds() {
	var roomId = $('select#roomListLbx  option:selected').val();
	$.get(
		'../BedManagement/getAvailableBedsSelect?set_ajax_view',
		{
		roomId: roomId,
		currentBedId: $('#currentBedId').val()
		},
		function(data) {
			$('select#bedListLbx').html("<option id='empty' value='empty'>" + _("Select bed") + "</option>");
			$('select#bedListLbx').append(data);
		}
	);
}
